package com.wf.imgshow.dao;

import java.sql.Timestamp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class ImgShowDaoImpl implements ImgShowDao{

	@Autowired
	JdbcTemplate jdbcTemplate;

	public boolean addArticleInfo(String ip,String ipregion) {
		String sql="INSERT INTO Uservisitlog (ip,ipregion,addTime) VALUES (?,?,?)";
		jdbcTemplate.update(sql,ip,ipregion,new Timestamp(System.currentTimeMillis()));
		return false;
	}

}
